let title = 'loadMore'
// 按钮级别控制权限
function fun() {
  return {
    // 当被绑定的元素挂载到 DOM 中时……
    mounted(el, binding) {
      const DOM = el.querySelector(binding.value.class)
      DOM.addEventListener('scroll', function () {
        const CONDITION = this.scrollHeight - this.scrollTop <= this.clientHeight
        if (CONDITION) {
          binding.value.loadFun()
        }
      })
    }
  }
}

module.exports = {
  title,
  fun
}
